package com.huang.community.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.huang.community.pojo.Comment;
import org.springframework.stereotype.Service;

import java.util.List;

public interface CommentService extends IService<Comment> {
    List<Comment> findCommentsByEntity(Integer entityType,Integer postId,int offest,int limit);
    int findCommentCount(Integer entityType,Integer entityId);
    public int addComment(Comment comment);
    public Comment findCommentById(int commentId);
    public int findCommentCountByUserId(Integer userId);
    public List<Comment> findCommentOnlyComByuid(Integer userId,int offest, int limit);
}
